package com.yjd.bi.canal.enums;

public enum CanalListenedTables {
	BORROW("yjd_borrow","www_yijiedai_com");
	private String table;
	private String schema;

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getSchema() {
		return schema;
	}

	public void setSchema(String schema) {
		this.schema = schema;
	}
	
	public static CanalListenedTables find(String table,String schema){
		for(CanalListenedTables c:CanalListenedTables.values()){
			if(c.getTable().equals(table)&&c.getSchema().equals(schema)){
				return c;
			}
		}
		return null;
	}
	
	CanalListenedTables(String table,String schema){
		this.table=table;
		this.schema=schema;
	}
}
